@extends('app')

@section('content')
<ul class="nav nav-tabs">
    <li class="active"><a href="{{ url('/admin/content/module')}}">列表</a></li>
    <li><a href="{{ url('/admin/content/module/create') }}">添加</a></li>
</ul>


<div class="panel panel-default mt20">

    <div class="table-responsive panel-body">
        <table class="table table-hover">
          <thead>
            <tr>
              <th>模块图片</th>
              <th>模块名称</th>
              <th>排序</th>
              <th>发布时间</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
          @foreach($result as $res)
            <tr id="module_{{ $res->id }}">
              <td><img src="{{ $res->image_url }}" width="120" height="60"></td>
              <td><a href="{{ url('/admin/content/module/'.$res->id.'/edit') }}">{{ $res->name }} </a></td>
              <td>{{ $res->sort }}</td>
              <td>{{ $res->created_at}}</td>
              <td>
                <a href="{{ url('/admin/content/module/'.$res->id.'/edit') }}"><i class="glyphicon glyphicon-edit"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="javascript:void(0);" onclick=""><i class="glyphicon glyphicon-remove-sign"></i></a>
              </td>
            </tr>
          @endforeach
          </tbody>
        </table>
    </div>
</div>
<div>{!! $result->render() !!} </div>
@endsection
